package com.example.questionnaire.mbg.mapper;

import com.example.questionnaire.mbg.entity.Answer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AnswerMapper {

    int insertAnswer(Answer answer);

    List<Answer> getAnByQnid(@Param("qnid") int qnid);

    Answer getAnByQnidandUid(@Param("qnid") int qnid, @Param("uid") int uid);
}